﻿using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

    /// <summary>
    /// 系列基础输入参数
    /// </summary>
    public class car_colorBaseInput
    {
        /// <summary>
        /// 颜色名
        /// </summary>
        public virtual string? colorName { get; set; }
        
        /// <summary>
        /// 关联-系列id
        /// </summary>
        public virtual long? xilieId { get; set; }
        
        /// <summary>
        /// 颜色取值
        /// </summary>
        public virtual string? colorValue { get; set; }
        
        /// <summary>
        /// 图地址
        /// </summary>
        public virtual string imgurl { get; set; }
        
        /// <summary>
        /// 车型id
        /// </summary>
        public virtual long carid { get; set; }
        
        /// <summary>
        /// 父id
        /// </summary>
        public virtual long pid { get; set; }
        
    }

    /// <summary>
    /// 系列分页查询输入参数
    /// </summary>
    public class car_colorInput : BasePageInput
    {
        /// <summary>
        /// 颜色名
        /// </summary>
        public string? colorName { get; set; }
        
        /// <summary>
        /// 关联-系列id
        /// </summary>
        public long? xilieId { get; set; }
        
        /// <summary>
        /// 颜色取值
        /// </summary>
        public string? colorValue { get; set; }
        
        /// <summary>
        /// 图地址
        /// </summary>
        public string imgurl { get; set; }
        
        /// <summary>
        /// 车型id
        /// </summary>
        public long carid { get; set; }

    /// <summary>
    /// 父id
    /// </summary>
    public long pid { get; set; } = -1;
        
    }

    /// <summary>
    /// 系列增加输入参数
    /// </summary>
    public class Addcar_colorInput : car_colorBaseInput
    {
    }

    /// <summary>
    /// 系列删除输入参数
    /// </summary>
    public class Deletecar_colorInput : BaseIdInput
    {
    }

    /// <summary>
    /// 系列更新输入参数
    /// </summary>
    public class Updatecar_colorInput : car_colorBaseInput
    {
        /// <summary>
        /// Id
        /// </summary>
        [Required(ErrorMessage = "Id不能为空")]
        public long Id { get; set; }
        
    }

    /// <summary>
    /// 系列主键查询输入参数
    /// </summary>
    public class QueryByIdcar_colorInput : Deletecar_colorInput
    {

    }
